<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Tagger jQuery Plugin v1.1</title>
	<meta name="author" content="Chris Iufer">
	<style type="text/css" media="screen">
		body { font-family:Arial; font-size:80%;}
		fieldset {border:0; }
		.tagger { float:left; }
		.tagAdd { margin:0 0 0 6px;}
		.tagList { list-style:none; padding:0; margin:0; clear:both; border-left:3px solid #ddd; padding-left:4px; float:left; margin:5px 10px;}
		.tagName { cursor:pointer; float:left; clear:both; padding:0.1em 1.5em 0.1em 0.4em;}
		.tagName:hover { background:#efefef url(bullet_toggle_minus.png) right 2px no-repeat; -moz-border-radius:4px; }
	</style>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="jquery.tagger.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
	
	<fieldset>
		<legend>Names</legend>
		<input class="tagger" type="text" name="names[]" />
	</fieldset>

	<fieldset>
		<legend>Places</legend>
		<input class="tagger" type="text" name="places[]" id="places" />
	</fieldset>

	<fieldset>
		<legend>Tags</legend>
		<input class="tagger" type="text" name="tags[]" />
	</fieldset>


<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
		$('.tagger').eq(0).select();
		// add to unnamed element by index
		$('.tagger').eq(0).addTag('photo, design, creative');

		// add to element by ID
		$('#places').addTag('mountain view');
		$('#places').addTag('chico');
	});
</script>

</body>
</html>
